package com.zw.data.mybatis.mapper;

import com.zw.data.mybatis.entity.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhangwei
 */
public interface ProductMapper {
    int deleteByPrimaryKey(Long productId);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Long productId);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    List<Product> selectProductsByName(@Param("keyword") String keyword);

}